package com.hqyj.springCloudAccount.service;


import com.github.pagehelper.PageInfo;
import com.hqyj.entity.account.User;
import com.hqyj.entity.common.ResultEntity;
import com.hqyj.entity.common.SearchBean;
import com.hqyj.springCloudAccount.entity.UserVo;

import java.util.List;

public interface UserService {

    User getUserByUserNameAndPassword(String userName, String password);

    ResultEntity<User> login(User user);

    ResultEntity<User> addUser(User user);

    ResultEntity<User> updateUserByUser(User user);

    ResultEntity<User> deleteUserById(int id);

    User selectUserById(int id);

    PageInfo<User> selectAllUser(SearchBean searchBean);

    User selectUserByUserName(String userName);

    UserVo getUserVoById(int id);

    List<User> getUserByUserNameOrEmail(String userName, String email);

}
